package Robot;
import javaclient2.*;

public abstract class Device {
    private PlayerDevice playerDevice;
    private String name;
    protected Robot robot;
    protected int deviceIndex;
    
    public Device(Robot robot, String name, int index) {
        this.robot=robot;
        
        this.name=name;
        this.deviceIndex=index;//robot.getId();
        
    }
    
    

    public PlayerDevice getPlayerDevice() {
        return playerDevice;
    }

    public void setPlayerDevice(PlayerDevice val) {
        this.playerDevice = val;
    }

    public String getName() {
        return name;
    }

    public void setName(String val) {
        this.name = val;
    }
    
    public Robot getRobot(){
        return robot;
    }
    
    public int getRobotId(){
        return robot.getId();
    }
    
    public abstract boolean isReady();
}
